[HVM] Shadow: don't shadow the p2m table.
authorTim Deegan <Tim.Deegan@xensource.com>
Fri, 31 Aug 2007 10:06:22 +0000 (11:06 +0100)
committerTim Deegan <Tim.Deegan@xensource.com>
Fri, 31 Aug 2007 10:06:22 +0000 (11:06 +0100)
commitc028cc106a4abb57e9f0c199e37073a627de7eb6
tree10916bd347c0321f8af3190455cd207cdbacbba1
parente5544039c94197ca04586cccf1af317ed11a05fe
[HVM] Shadow: don't shadow the p2m table.
For HVM vcpus with paging disabled, we used to shadow the p2m table,
and skip the p2m lookup to go from gfn to mfn.  Instead, we now
provide a simple pagetable that gives a one-to-one mapping of 4GB, and
shadow that, making the translations from gfn to mfn via the p2m.
This removes the paging-disabled special-case code from the shadow
fault handler, and allows us to expand the p2m interface, since all HVM
translations now go through the same p2m lookups.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
xen/arch/x86/domain.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/mm/hap/hap.c
xen/arch/x86/mm/paging.c
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/mm/shadow/private.h
xen/arch/x86/mm/shadow/types.h
xen/include/asm-x86/domain.h
xen/include/asm-x86/p2m.h
xen/include/asm-x86/paging.h